Skip to content

chore: fix for replacing all spaces in a string#205

Open
ursulabauer wants to merge 1 commit into
Eclipse-Laboratories-Inc:eclipse-appsfrom
ursulabauer:patch-1
Open

chore: fix for replacing all spaces in a string#205
ursulabauer wants to merge 1 commit into
Eclipse-Laboratories-Inc:eclipse-appsfrom
ursulabauer:patch-1

Conversation

@ursulabauer

Copy link
Copy Markdown

I’ve updated the function to ensure that all spaces in a string are replaced, not just the first one.

Previously, the regular expression was only targeting the first space, but now, with the global flag (/ /g), it correctly replaces every space in the string.

This change makes the function work as expected for strings with multiple spaces.

@vercel

vercel Bot commented Feb 10, 2025

Copy link
Copy Markdown

@ursulabauer is attempting to deploy a commit to the Eclipse Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant